import os


input_path = os.getcwd() + "/srcfile"
output_path = os.getcwd() + "/output"


for file in os.listdir(input_path):
    if (os.path.isfile(os.path.join(input_path, file)) == True):
        if (file.find(".") < 0):
            new_name = file + ".png"
            os.rename(os.path.join(input_path, file), os.path.join(output_path, new_name))
            print(file, "OK")
